﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="PssWork1.Index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style> 
        .box{
            width:80%;
            margin:0 auto;
        }
        .top img{
            width:100%;
            height:60px;

        }
        .search{
            margin-top:-10px;
            width:100%;
            height:60px;
            background-color:steelblue;
            display:flex;
            justify-content:space-around;
            line-height:60px;
            color:white;
        }
         .search .lift .yjiao{
             border-radius:20px;
             border:0px;
             padding-left:10px;
         }
         .search .lift .btn1{
             height:30px;
             width:60px;
             background-color:forestgreen;
             color:white;
             border-radius:10px;
             border:0px;
         }
         .search .rigth .btn2{
             height:30px;
             width:80px;
             background-color:sandybrown;
             color:white;
             border-radius:10px;
             border:0px;
         }
         .Box-hs{
             display:flex;
             justify-content:space-between;
              width:100%;
             height:30px;
             border:1px solid gray;
             line-height:30px;
             text-align:center;
            
         }
         .Box-hs .lift{
             margin-left:15px;
         }
         .Box-hs .rigth{
             margin-right:15px;
         }
         .Box-hs .lift img{
             width:20px;
             height:20px;
             padding-top:5px;
         }
        
    </style>
</head>
<body>
    <form id="form1" runat="server">
       <div class="box">
            <div class="top"> 
                <img src="img/bj.png" />
            </div>
            <div class="search">
                <div class="lift">
                    问题：<asp:TextBox ID="TextBox1" runat="server" CssClass="yjiao"></asp:TextBox>
                    <asp:Button ID="btnChax" runat="server" Text="查询" CssClass="btn1" OnClick="btnChax_Click"/>
                </div>
                <div class="rigth">
                    <asp:Button ID="btnTiw" runat="server" Text="提出问题" CssClass="btn2" OnClick="btnTiw_Click"/>
                </div>

            </div>
            <table class="Tb">
                    <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr class="Hs">
                        <div class="Box-hs">
                        <div class="lift">
                            <img src="img/w.png" />
                            <asp:LinkButton ID="dj" OnCommand="dj_Command" CommandArgument='<%# Eval("TopicId")%>' runat="server"><%#Eval("Title") %></asp:LinkButton>
                        </div>
                        
                        <div class="rigth">
                            <%#Eval("UpdateTime","{0:yyyy年MM月dd日}") %>-<%#Eval("IPAddress") %></div>
                            </div>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
                </table>

        </div>
    </form>
</body>
</html>
